﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 打包台
    /// </summary>
    [Table("T_Pack")]
    public class Pack:BaseEntity
    {
        /// <summary>
        /// 编码
        /// </summary>
        [MaxLength(50)]
        public string Code { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [MaxLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 区域类型：1-入库区;2-出库区;3-异常区
        /// </summary>
        public int? AreaType { get; set; }

        /// <summary>
        /// 是否有货
        /// </summary>
        public bool IsUsed { get; set; }

        /// <summary>
        /// 状态：0-禁用；1-启用；
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 关联单据的状态
        /// </summary>
        public int? RelatedOrderStatus { get; set; }

        /// <summary>
        /// 关联入/出单id
        /// </summary>
        public long? RelatedOrderId { get; set; }

        /// <summary>
        /// 关联入/出单详细id
        /// </summary>
        public long? RelatedOrderDetailId { get; set; }

        /// <summary>
        /// 关联入/出单据
        /// </summary>
        public string RelatedOrderSn { get; set; }
    }
}
